package cn.gson.crm.model.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.crm.model.pojo.InveInfoTb;
import cn.gson.crm.model.pojo.Product;


public interface InveinfoDao extends CrudRepository<InveInfoTb, Long>{
	@Query("from 	InveInfoTb where invetbid = ?1 order by inveInfoId")
public List<InveInfoTb>queryByPageaa(Long key,Pageable p);
@Query("select count(*)from InveInfoTb e where e.invetbid = ?1 order by e.inveInfoId")
public long countwhere(Long key);
@Query("from 	InveInfoTb order by inveInfoId")
public List<InveInfoTb>queryByPage(Pageable p);
}
